package com.czk.springcloud.service;

import com.czk.springcloud.entity.CommonResult;
import com.czk.springcloud.entity.Payment;
import org.springframework.stereotype.Component;

/**
 * @Author:ChenZhangKun
 * @Date: 2020/12/26 21:17
 */
@Component
public class PaymentFallbackService implements PaymentService{
    @Override
    public CommonResult<Payment> paymentSql(Long id) {
        return new CommonResult<>(444,"服务降级",new Payment(id,"serial111"));
    }
}
